import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

const actions = {}

const mutations = {}

const state = {
    school:{
        name: '尚硅谷',
        address: '宏福科技园',
        age: 8
    },
    Saying:[
        {id:'001',title: '君不见，黄河之水天上来，奔流到海不复回' ,author:'李白'}
    ]
}

const getters = {}

export default new Vuex.Store({
    actions,
    mutations,
    state,
    getters
})